package com.touchstone.synchdata.service.impl;

import com.touchstone.synchdata.dao.mssql.AccountMapper;
import com.touchstone.synchdata.entity.mssql.Account;
import com.touchstone.synchdata.service.IAccountService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description : 账户业务实现类
 * @Author : hunter
 * @Date: 2020-06-23 11:25
 * @Version: 1.0
 **/
@Slf4j
@Service
public class AccountServiceImpl implements IAccountService {

    @Resource
    private AccountMapper accountMapper;

    @Override
    public List<Account> listAccounts() {
        List<Account> accounts = accountMapper.selectAll();
        log.info("查询到sql server库中所有账户：{}", accounts);
        return accounts;
    }
}
